home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_h.lzh / exec / devices.h < prev    next >
C/C++ Source or Header  |  1991-03-14  |  967b  |  46 lines

  1. #ifndef    EXEC_DEVICES_H
  2. #define    EXEC_DEVICES_H
  3. /*
  4. **    $Filename: exec/devices.h $
  5. **    $Release: 2.04 $
  6. **    $Revision: 36.5 $
  7. **    $Date: 90/05/10 $
  8. **
  9. **    Include file for use by Exec device drivers
  10. **
  11. **    (C) Copyright 1985,1986,1987,1988,1989 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_LIBRARIES_H
  16. #include "exec/libraries.h"
  17. #endif /* EXEC_LIBRARIES_H */
  18.  
  19. #ifndef EXEC_PORTS_H
  20. #include "exec/ports.h"
  21. #endif /* EXEC_PORTS_H */
  22.  
  23.  
  24. /****** Device ******************************************************/
  25.  
  26. struct Device {
  27.     struct  Library dd_Library;
  28. };
  29.  
  30.  
  31. /****** Unit ********************************************************/
  32.  
  33. struct Unit {
  34.     struct  MsgPort unit_MsgPort;    /* queue for unprocessed messages */
  35.                     /* instance of msgport is recommended */
  36.     UBYTE   unit_flags;
  37.     UBYTE   unit_pad;
  38.     UWORD   unit_OpenCnt;        /* number of active opens */
  39. };
  40.  
  41.  
  42. #define UNITF_ACTIVE    (1<<0)
  43. #define UNITF_INTASK    (1<<1)
  44.  
  45. #endif    /* EXEC_DEVICES_H */
  46.